export default {
  data() {
    return {
      rules: {
        proUuid: [{ required: true, message: "请选择项目", trigger: "change" }],
        applicationUnit: [
          { required: false, message: "请输入申请单位", trigger: "blur" },
        ],
        proAddress: [
          {
            required: false,
            message: "请输入详细地址",
            trigger: "blur",
          },
        ],
        zipCode: [
          {
            required: false,
            message: "请输入邮编",
            trigger: "blur",
          },
        ],
        contacts: [
          {
            required: false,
            message: "请输入联系人",
            trigger: "blur",
          },
        ],
        officialCapacity: [
          {
            required: false,
            message: "请输入职务职称",
            trigger: "blur",
          },
        ],
        telephone: [
          {
            required: false,
            message: "请输入联系电话",
            trigger: "blur",
          },
        ],
        mobile: [
          {
            required: false,
            message: "请输入手机",
            trigger: "blur",
          },
          {
            pattern: /^1[0-9]{10}$/,
            message: "请输入正确的手机号",
          },
        ],
        fax: [
          {
            required: false,
            message: "请输入传真",
            trigger: "blur",
          },
        ],
        email: [
          {
            required: false,
            message: "请输入邮箱",
            trigger: "blur",
          },
          {
            pattern: /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
            message: "请输入正确的邮箱地址",
          },
        ],
        supervisionAgency: [
          {
            required: false,
            message: "请输入工程质量，监督机构",
            trigger: "blur",
          },
        ],
        participatingUnits: [
          {
            required: false,
            message: "请输入参建单位",
            trigger: "blur",
          },
        ],
        introduction: [
          {
            required: false,
            message: "请输入项目概况",
            trigger: "blur",
          },
        ],
        creationPlan: [
          {
            required: false,
            message: "请输入项目创建计划",
            trigger: "blur",
          },
        ],
        reviewOpinions: [
          {
            required: false,
            message: "请输入审查意见",
            trigger: "blur",
          },
        ],
      },
    };
  },
};
